package br.com.dev.tcc.builder;

import android.content.Intent;
import android.net.Uri;

public class PhoneIntentBuilder {

	public static Intent buildIntent(String phoneNumber){
		
		Uri u = Uri.parse("tel:" + phoneNumber);
		Intent it = new Intent(Intent.ACTION_CALL);
		it.setData(u);
		it.setFlags(Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS);
		
		return it;
	}
}
